package org.mch.biz.loading;

import javax.swing.JFrame;

public class WaitDialog extends Thread {

	private LoadingDialog dlg;

	public WaitDialog() {
		dlg = new LoadingDialog();
	}

	public WaitDialog(JFrame frame, String labelInfo) {
		dlg = new LoadingDialog(frame, labelInfo);
	}

	@Override
	public void run() {
		dlg.showModel();
	}

	public void end() {
		dlg.dispose();
	}
}
